package com.example.vo.respvo;
import com.example.pojo.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户返回类
 *
 * @author wsl
 */
@Data
@ApiModel("员工实体类")
public class EmpVo {

    @ApiModelProperty("员工编号")
    private Integer id;

    @ApiModelProperty("员工姓名")
    private String empName;

    @ApiModelProperty("简历编号")
    private Integer resumeId;

    @ApiModelProperty("部门编号")
    private Integer deptId;

    @ApiModelProperty("职称编号")
    private Integer rankId;

    @ApiModelProperty("职位编号")
    private Integer positionId;

    @ApiModelProperty("员工工号")
    private String workId;

    @ApiModelProperty("在职状态")
    private Integer status;

    @ApiModelProperty("上级编号")
    private Integer superiorId;

    @ApiModelProperty("员工联系电话")
    private String phone;

    @ApiModelProperty("聘用形式")
    private Integer hireForm;

    @ApiModelProperty("入职日期")
    private LocalDate hireDate;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("是否在线")
    private String online;

    @ApiModelProperty("用户头像")
    private String icon;

    @ApiModelProperty("用户名称")
    private String nickname;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    @ApiModelProperty("是否删除")
    private Integer deleted;

    @ApiModelProperty("部门")
    private Dept dept;

    @ApiModelProperty("员工简历")
    private Resume resume;

    @ApiModelProperty("上级员工")
    private Emp superior;

//    @ApiModelProperty("职称")
//    @TableField(exist = false)
//    private Rank

    @ApiModelProperty("职位")
    private Position position;

    @ApiModelProperty("角色列表")
    private List<Role> roles;
}
